import 'package:flutter/cupertino.dart';
import 'package:xvideos/hj_utils/holiday_theme.dart';

class MainPageState {
  List<String> titleArr = ['主页', '抖音','暗网', '社区', '我的'];

  List<String> get imageName {
    return [
      HolidayTheme.theme.homeNor,
      HolidayTheme.theme.acgNor,
      HolidayTheme.theme.communityNor,
      HolidayTheme.theme.findNor,
      HolidayTheme.theme.mineNor,
    ];
  }

  List<String> get selectedName {
    return [
      HolidayTheme.theme.homeSel,
      HolidayTheme.theme.acgSel,
      HolidayTheme.theme.communitySel,
      HolidayTheme.theme.findSel,
      HolidayTheme.theme.mineSel,
    ];
  }

  PageController pageController = PageController(initialPage: 0);

  int get curIndex {
    if (pageController.hasClients == true) {
      return pageController.page?.toInt() ?? 0;
    }
    return 0;
  }

  MainPageState();
}
